package com.hao.demo.zoo.protobuf.api;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.37.0)",
    comments = "Source: DepotsOperateLogApi.proto")
public final class OperateLogServiceGrpc {

  private OperateLogServiceGrpc() {}

  public static final String SERVICE_NAME = "com.hao.demo.zoo.protobuf.api.OperateLogService";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor<com.hao.demo.zoo.protobuf.api.OperateLogRequest,
      com.hao.demo.zoo.protobuf.api.OperateLogResponseList> getGetByBusinessIdMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "getByBusinessId",
      requestType = com.hao.demo.zoo.protobuf.api.OperateLogRequest.class,
      responseType = com.hao.demo.zoo.protobuf.api.OperateLogResponseList.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<com.hao.demo.zoo.protobuf.api.OperateLogRequest,
      com.hao.demo.zoo.protobuf.api.OperateLogResponseList> getGetByBusinessIdMethod() {
    io.grpc.MethodDescriptor<com.hao.demo.zoo.protobuf.api.OperateLogRequest, com.hao.demo.zoo.protobuf.api.OperateLogResponseList> getGetByBusinessIdMethod;
    if ((getGetByBusinessIdMethod = OperateLogServiceGrpc.getGetByBusinessIdMethod) == null) {
      synchronized (OperateLogServiceGrpc.class) {
        if ((getGetByBusinessIdMethod = OperateLogServiceGrpc.getGetByBusinessIdMethod) == null) {
          OperateLogServiceGrpc.getGetByBusinessIdMethod = getGetByBusinessIdMethod =
              io.grpc.MethodDescriptor.<com.hao.demo.zoo.protobuf.api.OperateLogRequest, com.hao.demo.zoo.protobuf.api.OperateLogResponseList>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getByBusinessId"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.hao.demo.zoo.protobuf.api.OperateLogRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.hao.demo.zoo.protobuf.api.OperateLogResponseList.getDefaultInstance()))
              .setSchemaDescriptor(new OperateLogServiceMethodDescriptorSupplier("getByBusinessId"))
              .build();
        }
      }
    }
    return getGetByBusinessIdMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static OperateLogServiceStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<OperateLogServiceStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<OperateLogServiceStub>() {
        @java.lang.Override
        public OperateLogServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new OperateLogServiceStub(channel, callOptions);
        }
      };
    return OperateLogServiceStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static OperateLogServiceBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<OperateLogServiceBlockingStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<OperateLogServiceBlockingStub>() {
        @java.lang.Override
        public OperateLogServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new OperateLogServiceBlockingStub(channel, callOptions);
        }
      };
    return OperateLogServiceBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static OperateLogServiceFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<OperateLogServiceFutureStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<OperateLogServiceFutureStub>() {
        @java.lang.Override
        public OperateLogServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new OperateLogServiceFutureStub(channel, callOptions);
        }
      };
    return OperateLogServiceFutureStub.newStub(factory, channel);
  }

  /**
   */
  public static abstract class OperateLogServiceImplBase implements io.grpc.BindableService {

    /**
     * <pre>
     ** 根据业务ID查询数据 
     * </pre>
     */
    public void getByBusinessId(com.hao.demo.zoo.protobuf.api.OperateLogRequest request,
        io.grpc.stub.StreamObserver<com.hao.demo.zoo.protobuf.api.OperateLogResponseList> responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetByBusinessIdMethod(), responseObserver);
    }

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getGetByBusinessIdMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.hao.demo.zoo.protobuf.api.OperateLogRequest,
                com.hao.demo.zoo.protobuf.api.OperateLogResponseList>(
                  this, METHODID_GET_BY_BUSINESS_ID)))
          .build();
    }
  }

  /**
   */
  public static final class OperateLogServiceStub extends io.grpc.stub.AbstractAsyncStub<OperateLogServiceStub> {
    private OperateLogServiceStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected OperateLogServiceStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new OperateLogServiceStub(channel, callOptions);
    }

    /**
     * <pre>
     ** 根据业务ID查询数据 
     * </pre>
     */
    public void getByBusinessId(com.hao.demo.zoo.protobuf.api.OperateLogRequest request,
        io.grpc.stub.StreamObserver<com.hao.demo.zoo.protobuf.api.OperateLogResponseList> responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetByBusinessIdMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   */
  public static final class OperateLogServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<OperateLogServiceBlockingStub> {
    private OperateLogServiceBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected OperateLogServiceBlockingStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new OperateLogServiceBlockingStub(channel, callOptions);
    }

    /**
     * <pre>
     ** 根据业务ID查询数据 
     * </pre>
     */
    public com.hao.demo.zoo.protobuf.api.OperateLogResponseList getByBusinessId(com.hao.demo.zoo.protobuf.api.OperateLogRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetByBusinessIdMethod(), getCallOptions(), request);
    }
  }

  /**
   */
  public static final class OperateLogServiceFutureStub extends io.grpc.stub.AbstractFutureStub<OperateLogServiceFutureStub> {
    private OperateLogServiceFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected OperateLogServiceFutureStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new OperateLogServiceFutureStub(channel, callOptions);
    }

    /**
     * <pre>
     ** 根据业务ID查询数据 
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<com.hao.demo.zoo.protobuf.api.OperateLogResponseList> getByBusinessId(
        com.hao.demo.zoo.protobuf.api.OperateLogRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetByBusinessIdMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_GET_BY_BUSINESS_ID = 0;

  private static final class MethodHandlers<Req, Resp> implements
      io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
    private final OperateLogServiceImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(OperateLogServiceImplBase serviceImpl, int methodId) {
      this.serviceImpl = serviceImpl;
      this.methodId = methodId;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_GET_BY_BUSINESS_ID:
          serviceImpl.getByBusinessId((com.hao.demo.zoo.protobuf.api.OperateLogRequest) request,
              (io.grpc.stub.StreamObserver<com.hao.demo.zoo.protobuf.api.OperateLogResponseList>) responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public io.grpc.stub.StreamObserver<Req> invoke(
        io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        default:
          throw new AssertionError();
      }
    }
  }

  private static abstract class OperateLogServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    OperateLogServiceBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return com.hao.demo.zoo.protobuf.api.DepotsOperateLogApi.getDescriptor();
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("OperateLogService");
    }
  }

  private static final class OperateLogServiceFileDescriptorSupplier
      extends OperateLogServiceBaseDescriptorSupplier {
    OperateLogServiceFileDescriptorSupplier() {}
  }

  private static final class OperateLogServiceMethodDescriptorSupplier
      extends OperateLogServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    OperateLogServiceMethodDescriptorSupplier(String methodName) {
      this.methodName = methodName;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
      return getServiceDescriptor().findMethodByName(methodName);
    }
  }

  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;

  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
    io.grpc.ServiceDescriptor result = serviceDescriptor;
    if (result == null) {
      synchronized (OperateLogServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new OperateLogServiceFileDescriptorSupplier())
              .addMethod(getGetByBusinessIdMethod())
              .build();
        }
      }
    }
    return result;
  }
}
